package controller.design_mode_02_proxy_static;

/**
 * ***********************************************************
 *
 * @类名 : controller.design_mode_02_proxy_static.类名
 * @DESCRIPTION : 这家伙太懒啥都没写
 * @AUTHOR :  一个风情万种的男子
 * @DATE : 2016/4/15
 * ***********************************************************
 */
public class Proxy implements Subject {
    private Subject subject = null ;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void doSomeThing() {
        doSomeThingBefore();
       this.subject.doSomeThing();
        doSomeThingAfter();

    }

    private void doSomeThingAfter() {

        //pass
    }

    private void doSomeThingBefore() {

        //pass

    }
}
